//
//  HomeContentView.h
//  GuoBuGaForIphone
//
//  Created by zhangwo on 16/10/26.
//  Copyright © 2016年 GuoBuGa. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HomeContentViewCell.h"

//内容展示的collectionView
@class HomeContentView;
@protocol HomeViewDelegate <NSObject>

@optional
- (void)homeContentView:(HomeContentView *)homeContentView didSelectedItem:(NSDictionary *)data;
- (void)homeContentViewDidBeginEditing:(HomeContentView *)contentView;

@end


@interface HomeContentView : UIView <UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout,HomeDelegate,UITextFieldDelegate>


@property(nonatomic,readonly)UICollectionView *collectionView;
//Cell 尺寸
@property(nonatomic, assign)CGSize cellSize;
//图标尺寸
@property(nonatomic, assign)CGSize imageSize;
//分类数据列表
@property(nonatomic, strong)NSArray *dataList;
@property(nonatomic, assign)BOOL isEditing;
@property(nonatomic,assign) BOOL deleteBtnFlag;//删除按钮
//代理
@property(nonatomic, assign)id<HomeViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame;

@end
